//
//  RHSolarkSettingModel.h
//  RuiHeApp
//
//  Created by Yan Chen on 2025/5/18.
//

#import "BaseModel.h"
#import "DevSettingOptionModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface RHSolarkSettingModel : BaseModel
@property (nonatomic, copy) NSString *sectionTitle;

@property (nonatomic, copy) NSString *type;//数据类型(样式) 选择项,开关项,输入项

@property (nonatomic, copy) NSString *rowTitle;

@property (nonatomic, copy) NSString *key;

@property (nonatomic, copy) NSString *enumText;//枚举选项所对应的值,用于展示

@property (nonatomic, copy) NSString *content; //如果是枚举值,存的是下标

@property (nonatomic, copy) NSString *comment; //备注

@property (nonatomic ,copy) NSString *format;//数据类型

@property (nonatomic ,copy) NSString *unit;//单位

@property (nonatomic ,copy) NSString *maxValue; //最大值

@property (nonatomic ,copy) NSString *minValue; //最小值

@property (nonatomic ,copy) NSString *ratio; // 比例

@property (nonatomic ,copy) NSString *step;//加减的步进
//寄存器地址
@property (nonatomic ,assign) NSInteger regAddr;
//位宽
@property (nonatomic ,assign) NSInteger num;
//偏移量
@property (nonatomic ,assign) NSInteger offset;

@property (nonatomic, strong) NSArray <RHSolarkSettingModel*> *rows;

@property (nonatomic, strong) NSArray <RHSolarkSettingModel*> *items;

@property (nonatomic ,copy) NSArray<DevSettingOptionModel *> *selectList;

@property (nonatomic, assign) BOOL readOnly;

@property (nonatomic ,assign,getter=isWriteAndNotEditable) BOOL writeAndNotEditable;//智能模式下显示其他使能,不赋值,只作显示和参数下发

- (void)readDefult:(NSDictionary *)dic ;
@end

NS_ASSUME_NONNULL_END
